package day6;

import org.junit.Test;

public class TestStatic {

    @Test
    public void test01() {
        Coo c1=new Coo();
        System.out.println("====");
        Coo c2=new Coo();
    }
}

class Poo {
    static {
        System.out.println("Poo静态代码块");
    }

    public Poo() {
        System.out.println("Poo构造方法");
    }
}

class Coo extends Poo {
    static {
        System.out.println("Coo静态代码块");
    }
    public Coo() {
        System.out.println("Coo构造方法");
    }
}